/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.util.HashMap;
/*    */ import java.util.Locale;
/*    */ import java.util.Map;
/*    */ import net.minecraft.client.renderer.GlStateManager;
/*    */ import net.minecraft.entity.EntityLivingBase;
/*    */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract class rq
/*    */ {
/*    */   public wo t;
/*    */   public Map<String, String> d;
/*    */   public bh z;
/*    */   public bh i;
/*    */   public bh w;
/*    */   public bh q;
/*    */   public bh g;
/*    */   
/*    */   public rq(wo wo1, ConfigurationSection configurationSection) {
/* 24 */     this.t = wo1;
/* 25 */     this.z = wo1.v(configurationSection.get("x", Integer.valueOf(0)));
/* 26 */     this.i = wo1.v(configurationSection.get("y", Integer.valueOf(0)));
/* 27 */     this.w = wo1.v(configurationSection.get("visible", Boolean.valueOf(true)));
/* 28 */     this.q = wo1.v(configurationSection.get("scale", Integer.valueOf(1)));
/* 29 */     this.g = wo1.v(configurationSection.get("glow", Boolean.valueOf(false)));
/* 30 */     this.d = new HashMap<>();
/* 31 */     for (String str : configurationSection.getKeys(false)) {
/* 32 */       this.d.put(str, String.valueOf(configurationSection.get(str)));
/*    */     }
/*    */   }
/*    */ 
/*    */   
/*    */   public final void z(EntityLivingBase entityLivingBase, float f, boolean bool) {
/* 38 */     if (!this.w.z()) {
/*    */       return;
/*    */     }
/*    */ 
/*    */     
/* 43 */     double d1 = this.z.z();
/* 44 */     double d2 = this.i.z();
/* 45 */     double d3 = this.q.z();
/* 46 */     GlStateManager.func_179094_E();
/* 47 */     GlStateManager.func_179137_b(d1, d2, 0.0D);
/* 48 */     GlStateManager.func_179139_a(d3, d3, 1.0D);
/* 49 */     v(entityLivingBase, f, bool);
/* 50 */     GlStateManager.func_179121_F();
/*    */   }
/*    */   
/*    */   public abstract void v(EntityLivingBase paramEntityLivingBase, float paramFloat, boolean paramBoolean);
/*    */   
/*    */   public void v(String str, Object object) {
/* 56 */     str = str.toLowerCase(Locale.ROOT);
/* 57 */     switch (str) {
/*    */       case "x":
/* 59 */         this.z = this.t.v(object);
/*    */         return;
/*    */       case "y":
/* 62 */         this.i = this.t.v(object);
/*    */         return;
/*    */       case "visible":
/* 65 */         this.w = this.t.v(object);
/*    */         return;
/*    */       case "scale":
/* 68 */         this.q = this.t.v(object);
/*    */         return;
/*    */     } 
/* 71 */     this.d.put(str, String.valueOf(object));
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public Object v(String str) {
/* 77 */     str = str.toLowerCase(Locale.ROOT);
/* 78 */     switch (str) {
/*    */       case "x":
/* 80 */         return this.z.z();
/*    */       case "y":
/* 82 */         return this.i.z();
/*    */       case "visible":
/* 84 */         return this.w.z() ? "true" : "false";
/*    */       case "scale":
/* 86 */         return this.q.z();
/*    */     } 
/* 88 */     return this.d.getOrDefault(str, "");
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\rq.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */